<div id="header">
    <div id="caption">
      <h2 id="title"><a href="./">{$webtitle}</a></h2>
      <div id="tagline">{$webdesc}</div>
    </div>
    <div id="navigation">
      <ul id="menus">
	    {if:{var:rewrite}=1}
        <li class="page_item"><a href="index.html">首页</a></li>
        <li><a href="comment.html">评论</a></li>
		{else}
        <li class="page_item"><a href="{$ifile}">首页</a></li>
        <li><a href="{$ifile}?act=plist">评论</a></li>
		{/if}
		{if:{var:admin}=1}
        <li><a href="{$ifile}?act=add" title="发布微博">发布</a></li>	 
		<li><a href="{$ifile}?act=set" title="设置微博">设置</a></li>
		<li><a href="{$ifile}?act=wid" title="设置边栏">边栏</a></li>
		<li><a href="{$ifile}?act=logout" title="退出">退出</a></li>
       {else}
        <li><a href="{$ifile}?act=login" title="登陆到微博">登录</a></li>
	   {/if}
      </ul>
      <div id="other">
	   <form action="{$ifile}" id="searchbox" method="get">
         <input type="text" x-webkit-speech="" placeholder="搜索..." name="s" class="search"><button class="btn" type="submit">搜索</button>      
      </form>
      </div>
    </div>
  </div>